package com.qingfeng.client.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zhangyuefei
 * @version 1.0
 * @date 2020/1/6 10:16 上午
 */
@ApiModel(value = "com.qingfeng.client.bean.Logistics")
@Data
@TableName(value = "logistics")
public class Logistics {
    /**
     * 物流id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "物流id")
    private Long id;

    /**
     * 物流订单创建人,可能是用户也可能是商家，看state类型
     */
    @TableField(value = "create_id")
    @ApiModelProperty(value = "物流订单创建人,可能是用户也可能是商家，看state类型")
    private Long createId;

    /**
     * 物流名称
     */
    @TableField(value = "logistics_name")
    @ApiModelProperty(value = "物流名称")
    private String logisticsName;

    /**
     * 物流单号
     */
    @TableField(value = "logistics_code")
    @ApiModelProperty(value = "物流单号")
    private String logisticsCode;

    /**
     * 运费
     */
    @TableField(value = "price")
    @ApiModelProperty(value = "运费")
    private Integer price;

    /**
     * 物流订单照片
     */
    @TableField(value = "pic")
    @ApiModelProperty(value = "物流订单照片")
    private String pic;

    /**
     * 物流类型，1：正常发货，2:自提，3：无物流,4：退货物流，
     */
    @TableField(value = "type")
    @ApiModelProperty(value = "物流类型，1：正常发货，2:自提，3：无物流,4：退货物流，")
    private Integer type;

    /**
     * 物流状态，1：未发货，2：已发货，3：收到
     */
    @TableField(value = "state")
    @ApiModelProperty(value = "物流状态，1：未发货，2：已发货，3：收到")
    private Integer state;

    /**
     * 收货人姓名
     */
    @TableField(value = "recv_name")
    @ApiModelProperty(value = "收货人姓名")
    private String recvName;

    /**
     * 收货人手机号
     */
    @TableField(value = "recv_mobile")
    @ApiModelProperty(value = "收货人手机号")
    private String recvMobile;

    /**
     * 收货地址
     */
    @TableField(value = "des_address")
    @ApiModelProperty(value = "收货地址")
    private String desAddress;

    @TableField(value = "des_code")
    @ApiModelProperty(value = "收货地址代码")
    private Integer desCode;

    /**
     * 发货地址
     */
    @TableField(value = "src_address")
    @ApiModelProperty(value = "发货地址")
    private String srcAddress;

    /**
     * 物流创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "物流创建时间")
    private Integer createTime;

    /**
     * 发货时间
     */
    @TableField(value = "send_time")
    @ApiModelProperty(value = "发货时间")
    private Integer sendTime;

    /**
     * 收货时间
     */
    @TableField(value = "recv_time")
    @ApiModelProperty(value = "收货时间")
    private Integer recvTime;

    /**
     * 备注
     */
    @TableField(value = "comment")
    @ApiModelProperty(value = "备注")
    private String comment;

    /**
     * 发货人姓名
     */
    @TableField(value = "send_name")
    @ApiModelProperty(value = "发货人姓名")
    private String sendName;

    /**
     * 发货人手机号
     */
    @TableField(value = "send_mobile")
    @ApiModelProperty(value = "发货人手机号")
    private String sendMobile;
}
